<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Interface ManaPHP\Mvc\ModelInterface</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?70c1d062672daa3f906b72e4f5d03d4bc5c4174d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Overview</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-ManaPHP.Mvc.html" title="Summary of ManaPHP\Mvc"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-ManaPHP.html">
							ManaPHP<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Alias.html">
							Alias						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authentication.html">
							Authentication<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.html">
							Token<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.Mwt.html">
							Mwt						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Authorization.html">
							Authorization<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.html">
							Rbac<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.Models.html">
							Models						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.PermissionBuilder.html">
							PermissionBuilder						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cli.html">
							Cli<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cli.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Arguments.html">
							Arguments						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Controllers.html">
							Controllers						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Component.html">
							Component						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.html">
							Configure<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Ini.html">
							Ini						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Json.html">
							Json						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Counter.html">
							Counter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Db.html">
							Db<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.Sqlite.html">
							Sqlite						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Debugger.html">
							Debugger						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Di.html">
							Di						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Event.html">
							Event<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Event.Manager.html">
							Manager						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Facade.html">
							Facade						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Filesystem.html">
							Filesystem<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.html">
							Http<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Client.html">
							Client						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Cookies.html">
							Cookies						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Filter.html">
							Filter						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Request.html">
							Request<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Request.File.html">
							File						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.Response.html">
							Response						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Session.html">
							Session<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.I18n.html">
							I18n						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.html">
							Image<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Gd.html">
							Gd						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Imagick.html">
							Imagick						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Loader.html">
							Loader						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Logger.html">
							Logger<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Message.html">
							Message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.html">
							Queue<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Meter.html">
							Meter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Meter.Linear.html">
							Linear						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Meter.Round.html">
							Round						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-ManaPHP.Mvc.html">
							Mvc<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Dispatcher.html">
							Dispatcher						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.html">
							Model<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Manager.html">
							Manager						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.QueryBuilder.html">
							QueryBuilder						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.html">
							Router<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.RewriteChecker.html">
							RewriteChecker						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.Route.html">
							Route						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Url.html">
							Url						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.User.html">
							User						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.html">
							View<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.html">
							Flash<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.Adapter.html">
							Adapter						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Paginator.html">
							Paginator						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.html">
							Renderer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Sword.html">
							Sword						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Security.html">
							Security<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.Crypt.html">
							Crypt						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.CsrfToken.html">
							CsrfToken						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.html">
							RateLimiter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Serializer.html">
							Serializer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Json.html">
							Json						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.JsonPhp.html">
							JsonPhp						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.StringType.html">
							StringType						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Store.html">
							Store<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Task.html">
							Task<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Text.html">
							Text						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Utility.html">
							Utility						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.Application.html">Application</a></li>
				<li><a href="class-ManaPHP.Mvc.Controller.html">Controller</a></li>
				<li><a href="class-ManaPHP.Mvc.Dispatcher.html">Dispatcher</a></li>
				<li><a href="class-ManaPHP.Mvc.Model.html">Model</a></li>
				<li><a href="class-ManaPHP.Mvc.Module.html">Module</a></li>
				<li><a href="class-ManaPHP.Mvc.Router.html">Router</a></li>
				<li><a href="class-ManaPHP.Mvc.Url.html">Url</a></li>
				<li><a href="class-ManaPHP.Mvc.View.html">View</a></li>
				<li><a href="class-ManaPHP.Mvc.Widget.html">Widget</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.ControllerInterface.html">ControllerInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.DispatcherInterface.html">DispatcherInterface</a></li>
				<li class="active"><a href="class-ManaPHP.Mvc.ModelInterface.html">ModelInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.ModuleInterface.html">ModuleInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.RouterInterface.html">RouterInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.UrlInterface.html">UrlInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.ViewInterface.html">ViewInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.WidgetInterface.html">WidgetInterface</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.Exception.html">Exception</a></li>
				<li><a href="class-ManaPHP.Mvc.NotFoundException.html">NotFoundException</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Interface ModelInterface</h1>


	<div class="description">
	<p>Interface ManaPHP\Mvc\ModelInterface</p>
	</div>





	<div>
		<h3>Direct known implementers</h3>
		<p class="elementList">
			<code><a href="class-ManaPHP.Mvc.Model.html">ManaPHP\Mvc\Model</a></code>
		</p>
	</div>

	<div>
		<h3>Indirect known implementers</h3>
		<p class="elementList">
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.Permission.html">ManaPHP\Authorization\Rbac\Models\Permission</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.Role.html">ManaPHP\Authorization\Rbac\Models\Role</a></code>, 
			<code><a href="class-ManaPHP.Meter.Round.Model.html">ManaPHP\Meter\Round\Model</a></code>, 
			<code><a href="class-ManaPHP.Security.RateLimiter.Adapter.Db.Model.html">ManaPHP\Security\RateLimiter\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Store.Adapter.Db.Model.html">ManaPHP\Store\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Task.Metadata.Adapter.Db.Model.html">ManaPHP\Task\Metadata\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.RolePermission.html">ManaPHP\Authorization\Rbac\Models\RolePermission</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.UserRole.html">ManaPHP\Authorization\Rbac\Models\UserRole</a></code>, 
			<code><a href="class-ManaPHP.Cache.Adapter.Db.Model.html">ManaPHP\Cache\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Counter.Adapter.Db.Model.html">ManaPHP\Counter\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Http.Session.Adapter.Db.Model.html">ManaPHP\Http\Session\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Logger.Adapter.Db.Model.html">ManaPHP\Logger\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Message.Queue.Adapter.Db.Model.html">ManaPHP\Message\Queue\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Meter.Linear.Model.html">ManaPHP\Meter\Linear\Model</a></code>
		</p>
	</div>



	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-ManaPHP.html">ManaPHP</a>\<a href="namespace-ManaPHP.Mvc.html">Mvc</a><br>
		<b>Package:</b> model<br>

			<b>Located at</b> <a href="source-class-ManaPHP.Mvc.ModelInterface.html#5-301" title="Go to source code">Mvc/ModelInterface.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="getSource" id="_getSource">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSource">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#12-20" title="Go to source code">getSource</a>( )</code>

			<div class="description short">
				<p>Returns table name mapped in the model</p>

<pre><span class="php-var">$city</span>-&gt;getSource();</pre>
			</div>

			<div class="description detailed hidden">
				<p>Returns table name mapped in the model</p>

<pre><span class="php-var">$city</span>-&gt;getSource();</pre>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setConnectionService" id="_setConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#22-29" title="Go to source code">setConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets both read/write connection services</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets both read/write connection services</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setWriteConnectionService" id="_setWriteConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setWriteConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#31-38" title="Go to source code">setWriteConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets the DependencyInjection connection service used to write data</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets the DependencyInjection connection service used to write data</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setReadConnectionService" id="_setReadConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setReadConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#40-47" title="Go to source code">setReadConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets the DependencyInjection connection service used to read data</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets the DependencyInjection connection service used to read data</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getReadConnectionService" id="_getReadConnectionService">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getReadConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#49-54" title="Go to source code">getReadConnectionService</a>( )</code>

			<div class="description short">
				<p>Returns DependencyInjection connection service used to read data</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns DependencyInjection connection service used to read data</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getWriteConnectionService" id="_getWriteConnectionService">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getWriteConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#56-61" title="Go to source code">getWriteConnectionService</a>( )</code>

			<div class="description short">
				<p>Returns DependencyInjection connection service used to write data</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns DependencyInjection connection service used to write data</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getReadConnection" id="_getReadConnection">

			<td class="attributes"><code>
				 public 
				<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getReadConnection">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#63-68" title="Go to source code">getReadConnection</a>( )</code>

			<div class="description short">
				<p>Gets internal database connection</p>
			</div>

			<div class="description detailed hidden">
				<p>Gets internal database connection</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getWriteConnection" id="_getWriteConnection">

			<td class="attributes"><code>
				 public 
				<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getWriteConnection">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#70-75" title="Go to source code">getWriteConnection</a>( )</code>

			<div class="description short">
				<p>Gets internal database connection</p>
			</div>

			<div class="description detailed hidden">
				<p>Gets internal database connection</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="assign" id="_assign">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_assign">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#77-89" title="Go to source code">assign</a>( <span>array <var>$data</var></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Assigns values to a model from an array</p>

<pre><span class="php-var">$city</span>-&gt;assign([<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">1</span>,<span class="php-quote">'city_name'</span>=&gt;<span class="php-quote">'beijing'</span>]);
 <span class="php-var">$city</span>-&gt;assign([<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">1</span>,<span class="php-quote">'city_name'</span>=&gt;<span class="php-quote">'beijing'</span>],[<span class="php-quote">'city_name'</span>]);</pre>
			</div>

			<div class="description detailed hidden">
				<p>Assigns values to a model from an array</p>

<pre><span class="php-var">$city</span>-&gt;assign([<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">1</span>,<span class="php-quote">'city_name'</span>=&gt;<span class="php-quote">'beijing'</span>]);
 <span class="php-var">$city</span>-&gt;assign([<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">1</span>,<span class="php-quote">'city_name'</span>=&gt;<span class="php-quote">'beijing'</span>],[<span class="php-quote">'city_name'</span>]);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="find" id="_find">

			<td class="attributes"><code>
				 public static
				static[]
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_find">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#91-106" title="Go to source code">find</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to query a set of records that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to query a set of records that match the specified conditions</p>

<pre><span class="php-var">$cities</span>=City::find([<span class="php-quote">'country_id'</span>=&gt;<span class="php-num">2</span>]);
 <span class="php-var">$cities</span>=City::find([<span class="php-quote">'conditions'</span>=&gt;[<span class="php-quote">'country_id'</span>=&gt;<span class="php-num">2</span>],<span class="php-quote">'order'</span>=&gt;<span class="php-quote">'city_id desc'</span>]);
 <span class="php-var">$cities</span>=City::find([[<span class="php-quote">'country_id'</span>=&gt;<span class="php-num">2</span>],<span class="php-quote">'order'</span>=&gt;<span class="php-quote">'city_id desc'</span>]);
 <span class="php-var">$cities</span>=City::find([<span class="php-quote">'conditions'</span>=&gt;<span class="php-quote">'country_id =:country_id'</span>,<span class="php-quote">'bind'</span>=&gt;[<span class="php-quote">'country_id'</span>=&gt;<span class="php-num">2</span>]]);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static[]
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="findAll" id="_findAll">

			<td class="attributes"><code>
				 public static
				static[]
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_findAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#108-116" title="Go to source code">findAll</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>alias of find</p>
			</div>

			<div class="description detailed hidden">
				<p>alias of find</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static[]
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="findFirst" id="_findFirst">

			<td class="attributes"><code>
				 public static
				static|false
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_findFirst">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#118-133" title="Go to source code">findFirst</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to query the first record that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to query the first record that match the specified conditions</p>

<pre><span class="php-var">$city</span>=City::findFirst(<span class="php-num">10</span>);
 <span class="php-var">$city</span>=City::findFirst([<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">10</span>]);
 <span class="php-var">$city</span>=City::findFirst([<span class="php-quote">'conditions'</span>=&gt;[<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">10</span>]]);
 <span class="php-var">$city</span>=City::findFirst([<span class="php-quote">'conditions'</span>=&gt;<span class="php-quote">'city_id =:city_id'</span>,<span class="php-quote">'bind'</span>=&gt;[<span class="php-quote">'city_id'</span>=&gt;<span class="php-num">10</span>]]);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static|false
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="exists" id="_exists">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exists">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#135-141" title="Go to source code">exists</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="query" id="_query">

			<td class="attributes"><code>
				 public static
				<code><a href="class-ManaPHP.Mvc.Model.QueryBuilderInterface.html">ManaPHP\Mvc\Model\QueryBuilderInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_query">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#143-150" title="Go to source code">query</a>( <span><code><a href="class-ManaPHP.DiInterface.html">ManaPHP\DiInterface</a></code> <var>$dependencyInjector</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Create a criteria for a special model</p>
			</div>

			<div class="description detailed hidden">
				<p>Create a criteria for a special model</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dependencyInjector</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.QueryBuilderInterface.html">ManaPHP\Mvc\Model\QueryBuilderInterface</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="count" id="_count">

			<td class="attributes"><code>
				 public static
				integer|array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_count">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#152-165" title="Go to source code">count</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$column</var> = <span class="php-quote">'*'</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to count how many records match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to count how many records match the specified conditions</p>

<pre>City::<span class="php-keyword2">count</span>([<span class="php-quote">'country_id'</span>=&gt;<span class="php-num">2</span>]);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer|array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="sum" id="_sum">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_sum">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#167-176" title="Go to source code">sum</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to calculate a summary on a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to calculate a summary on a column that match the specified conditions</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="max" id="_max">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_max">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#178-187" title="Go to source code">max</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to get the max value of a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to get the max value of a column that match the specified conditions</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="min" id="_min">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_min">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#189-198" title="Go to source code">min</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to get the min value of a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to get the min value of a column that match the specified conditions</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="average" id="_average">

			<td class="attributes"><code>
				 public static
				float
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_average">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#200-209" title="Go to source code">average</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to calculate the average value on a column matching the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to calculate the average value on a column matching the specified conditions</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						float
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="save" id="_save">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_save">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#211-219" title="Go to source code">save</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Inserts or updates a model instance. Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Inserts or updates a model instance. Returning true on success or false otherwise.</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="create" id="_create">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_create">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#221-230" title="Go to source code">create</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Inserts a model instance. If the instance already exists in the persistence it will throw an exception
Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Inserts a model instance. If the instance already exists in the persistence it will throw an exception
Returning true on success or false otherwise.</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="update" id="_update">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_update">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#232-241" title="Go to source code">update</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Updates a model instance. If the instance does n't exist in the persistence it will throw an exception
Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Updates a model instance. If the instance does n't exist in the persistence it will throw an exception
Returning true on success or false otherwise.</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="updateAll" id="_updateAll">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#243-250" title="Go to source code">updateAll</a>( <span>array <var>$columnValues</var></span>, <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$columnValues</var></dt>
						<dd></dd>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="delete" id="_delete">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_delete">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#252-257" title="Go to source code">delete</a>( )</code>

			<div class="description short">
				<p>Deletes a model instance. Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Deletes a model instance. Returning true on success or false otherwise.</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="deleteAll" id="_deleteAll">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_deleteAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#259-265" title="Go to source code">deleteAll</a>( <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="toArray" id="_toArray">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_toArray">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#267-276" title="Go to source code">toArray</a>( )</code>

			<div class="description short">
				<p>Returns the instance as an array representation</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the instance as an array representation</p>

<pre><span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>-&gt;toArray());</pre>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSnapshotData" id="_getSnapshotData">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSnapshotData">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#278-283" title="Go to source code">getSnapshotData</a>( )</code>

			<div class="description short">
				<p>Returns the internal snapshot data</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the internal snapshot data</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getChangedFields" id="_getChangedFields">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getChangedFields">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#285-290" title="Go to source code">getChangedFields</a>( )</code>

			<div class="description short">
				<p>Returns a list of changed values</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns a list of changed values</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="hasChanged" id="_hasChanged">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_hasChanged">#</a>
			<code><a href="source-class-ManaPHP.Mvc.ModelInterface.html#292-300" title="Go to source code">hasChanged</a>( <span>string|array <var>$fields</var></span> )</code>

			<div class="description short">
				<p>Check if a specific attribute has changed
This only works if the model is keeping data snapshots</p>
			</div>

			<div class="description detailed hidden">
				<p>Check if a specific attribute has changed
This only works if the model is keeping data snapshots</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fields</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











</div>
	</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
